export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "序号",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true,
      span: 12
    },
    {
      label: "图片组ID",
      prop: "groupId",
      type: "select",
      dicUrl: `/admin/mall/imagesGroup/groupIds`,
      props: {
        label: 'groupId',
        value: 'groupId'
      },
      formslot: true,
      search: true,
      rules: [{
        required: true,
        message: '请输入组ID',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      label: "图片",
      prop: "imagePath",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
      rules: [{
        required: true,
        message: '请选择图片',
        trigger: 'blur'
      }],
    },
    {
      label: "图片描述",
      prop: "description",
      type: "input",
      span: 12
    },
    {
      label: "图片排序",
      prop: "sortOrder",
      type: "input",
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      label: "上传日期时间",
      prop: "createTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      addDisplay: false,
      editDisabled: true,
      span: 12
    },
  ]
}
